<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/patientinfodoedit}" method="post" >
    <table>

        <tr>
            </td>
            <td>姓名：</td>
            <td th:if="${u} eq 1"><input type="text"  name="y" th:value="${u}"></td>
            <td>
                <input type="hidden" name="patientid" th:value="${one.patientid}">
             <input type="text" name="patientname" th:value="${one.patientname}">
            </td>
        </tr>
        <tr>
            <td>性别：</td>
            <td>
                <input type="text" name="patientgender" th:value="${one.patientgender}">
            </td>
        </tr>
        <tr>
            <td>密码：</td>
            <td>
                <input type="text" name="patientpass" th:value="${one.patientpass}">
            </td>
        </tr>
        <tr>
            <td>手机号：</td>
            <td>
                <input type="text" name="patientpho" th:value="${one.patientpho}">
            </td>
        </tr>
        <tr>
            <td>身份证号：</td>
            <td>
                <input type="text" name="patientidcard" th:value="${one.patientidcard}">
            </td>
        </tr>
        <tr>
            <td>创建名称：</td>
            <td>
                <input type="date" name="patientcreatime" th:value="${#dates.format(one.patientcreatime,'yyyy-MM-dd')}">
            </td>
        </tr>
        <td colspan="2">
            <input type="submit" value="添加用户">
        </td>
    </table>
</form>
</body>
</html>